﻿using CID.Domain.Development;
using CID.Domain.Users;

namespace CID.Domain.Persistence.Mappings.Development
{
    public class ReleaseMap : DescribedEntityMap<Release>
    {
        public ReleaseMap() : base()
        {
            Map(x => x.Status);
            References<User>(x => x.Responsible);
            HasMany<Version>(x => x.Versions).Cascade.SaveUpdate();
        }
    }
}
